package com.bole.dao;

import com.bole.pojo.TbCarInFoDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

public interface CarInfoDao extends JpaRepository<TbCarInFoDo,Long> {
    @Modifying
    @Transactional
    @Query("delete  from TbCarInFoDo c  where  c.id in (:idss) ")
    void deleteBatch(List<Long> idss);

    TbCarInFoDo findByCarId(Long carId);
}
